package top.infopub.model.cap;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Warking
 * @Date 2021/5/23 17:39
 * @Version 1.0  融资批复
 */
public class FundingApproval extends PublicInstance {
    /*融资要素*/
    private String financingElements;
    /*借款主体*/
    private String loanPrincipal;
    /*货款类型*/
    private String paymentType;
    /*融资金额*/
    private String financingAmount;
    /*融资期限*/
    private String financingMaturity;
    /*增信方式*/
    private String creditPromotionWay;
    /*授信起始日期*/
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date creditCommencementDate;
    /*授信到期日期*/
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date creditExpiryDate;
    /*批复首次启用截至日期*/
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date  deadlineApprovalFirst;
    /*授信类型*/
    private String creditType;
    /*审批意见*/
    private String approvalOpinion;
    /*放款前提条件*/
    private String conditionsLoan;
    /*其他说明*/
    private String otherDescription;
    /*批复结果*/
    private String replyResults;
    /*金融机构SGUID*/
    private String setupFinancialId;
    /*银行批复结果*/
    private String bankApprovalResult;
    /*银行批复意见*/
    private String bankApprovalOpinion;
    /*附件*/
    private String fileAtt[];

    public String getSetupFinancialId() {
        return setupFinancialId;
    }

    public void setSetupFinancialId(String setupFinancialId) {
        this.setupFinancialId = setupFinancialId;
    }

    //需要返回给前端的额外字段
    private String dockBank;  //具体金融机构名称

    public String getDockBank() {
        return dockBank;
    }

    public void setDockBank(String dockBank) {
        this.dockBank = dockBank;
    }

    public String getBankApprovalResult() {
        return bankApprovalResult;
    }

    public void setBankApprovalResult(String bankApprovalResult) {
        this.bankApprovalResult = bankApprovalResult;
    }

    public String getBankApprovalOpinion() {
        return bankApprovalOpinion;
    }

    public void setBankApprovalOpinion(String bankApprovalOpinion) {
        this.bankApprovalOpinion = bankApprovalOpinion;
    }

    public String[] getFileAtt() {
        return fileAtt;
    }

    public void setFileAtt(String[] fileAtt) {
        this.fileAtt = fileAtt;
    }

    public String getFinancingElements() {
        return financingElements;
    }

    public void setFinancingElements(String financingElements) {
        this.financingElements = financingElements;
    }

    public String getLoanPrincipal() {
        return loanPrincipal;
    }

    public void setLoanPrincipal(String loanPrincipal) {
        this.loanPrincipal = loanPrincipal;
    }

    public String getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(String paymentType) {
        this.paymentType = paymentType;
    }

    public String getFinancingAmount() {
        return financingAmount;
    }

    public void setFinancingAmount(String financingAmount) {
        this.financingAmount = financingAmount;
    }

    public String getFinancingMaturity() {
        return financingMaturity;
    }

    public void setFinancingMaturity(String financingMaturity) {
        this.financingMaturity = financingMaturity;
    }

    public String getCreditPromotionWay() {
        return creditPromotionWay;
    }

    public void setCreditPromotionWay(String creditPromotionWay) {
        this.creditPromotionWay = creditPromotionWay;
    }

    public Date getCreditCommencementDate() {
        return creditCommencementDate;
    }

    public void setCreditCommencementDate(Date creditCommencementDate) {
        this.creditCommencementDate = creditCommencementDate;
    }

    public Date getCreditExpiryDate() {
        return creditExpiryDate;
    }

    public void setCreditExpiryDate(Date creditExpiryDate) {
        this.creditExpiryDate = creditExpiryDate;
    }

    public Date getDeadlineApprovalFirst() {
        return deadlineApprovalFirst;
    }

    public void setDeadlineApprovalFirst(Date deadlineApprovalFirst) {
        this.deadlineApprovalFirst = deadlineApprovalFirst;
    }

    public String getCreditType() {
        return creditType;
    }

    public void setCreditType(String creditType) {
        this.creditType = creditType;
    }

    public String getApprovalOpinion() {
        return approvalOpinion;
    }

    public void setApprovalOpinion(String approvalOpinion) {
        this.approvalOpinion = approvalOpinion;
    }

    public String getConditionsLoan() {
        return conditionsLoan;
    }

    public void setConditionsLoan(String conditionsLoan) {
        this.conditionsLoan = conditionsLoan;
    }

    public String getOtherDescription() {
        return otherDescription;
    }

    public void setOtherDescription(String otherDescription) {
        this.otherDescription = otherDescription;
    }

    public String getReplyResults() {
        return replyResults;
    }

    public void setReplyResults(String replyResults) {
        this.replyResults = replyResults;
    }
}
